// Text.h provides the attributes of the Text class
//-----------------

#if !defined( TextH)
#define TextH

//-----------------
// Includes various libraries and files
#include <cassert>		// for asserts
#include <d3dx9.h>		// Direct 3D library (for all Direct 3D functions)

#include "constants.h"
//-----------------

class Text {
	public:
		// constructor and destructor
		Text( LPDIRECT3DDEVICE9 device, int height, int width);
		~Text();

		void create_font( LPDIRECT3DDEVICE9 device, int height, int width);
		void set_colour( D3DCOLOR colour);
		void set_colour( int a, int r, int g, int b);
		void set_rect( int x, int y, int width, int height);

		void render( LPCTSTR text);
		void render( LPCTSTR text, int x, int y, int width, int height);
		void render( LPCTSTR text, int x, int y, int width, int height, int a, int r, int g, int b);

	private:
		LPDIRECT3DDEVICE9 device_;
		LPD3DXFONT font_;
		D3DCOLOR colour_;
		RECT rect_;
};

#endif